Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: *fieldmap-less* integration from *SDCFlows* 2.0 #153

Merged
merged 3 commits into from
Mar 11, 2021

Conversation

oesteban
Copy link
Member

@oesteban oesteban commented Jan 27, 2021

Currently, this is blocked by the absence of a general solution to the
reference generation issue (see nipreps/niworkflows#601).

Once adequate DWI references are connected to the estimation workflow,
this feature should work out.
We can test the new feature with ds000206.

Resolves: #111.

@pep8speaks
Copy link

pep8speaks commented Jan 27, 2021

Hello @oesteban, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, pip install flake8 and then run flake8 dmriprep.

Comment last updated at 2021-03-11 13:53:27 UTC

@oesteban oesteban force-pushed the enh/fieldmap-less branch 2 times, most recently from cbdbc99 to 49d511b Compare February 8, 2021 10:02
@oesteban oesteban force-pushed the enh/fieldmap-less branch 2 times, most recently from 8a8e996 to c50afb9 Compare March 9, 2021 08:23
@oesteban oesteban marked this pull request as ready for review March 9, 2021 08:27
@@ -297,7 +303,10 @@ def _bold_reg_suffix(fallback):
)

sdc_report = pe.Node(
SimpleBeforeAfter(before_label="Distorted", after_label="Corrected",),
SimpleBeforeAfter(
before_label="Distorted",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The corrected image looks more distorted. Have the labels been swapped?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What dataset are you looking at? both?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup I see it in both

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I had a look and I believe this is a problem of the sloppy mode. The final B-Spline regularizer has very low resolution, and hence the distortions are converted into a very smooth field. It does a decent job to reshape the CC in the middle of the brain, but very bad job at the brain edges where the frequency of the distortion is high.

If you look at ds0001771, the reports are the same as in master, right?
If you look at ds000206, the fieldmap-less correction is pretty bad - here I think the sloppy mode is biting at all fronts. It is also that distortion is just too heavy.

Let's go ahead and try to refine this in the future. I think it is important not to be held up by optimization. There's a lot of integration ahead and all these moving pieces will need to find their right place. If we are too strict with that fitting right now we will not have a chance to look at the whole thing.

Currently, this is blocked by the absence of a general solution to the
reference generation issue (see nipreps/niworkflows#601).

Once adequate DWI references are connected to the estimation workflow,
this feature should work out.
We can test the new feature with ds000206.

Resolves: #111.
@oesteban oesteban merged commit 38746ee into master Mar 11, 2021
@oesteban oesteban deleted the enh/fieldmap-less branch March 11, 2021 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fieldmap-free distortion correction
3 participants